#include <thread>
#include <iostream>
#include <string>

using namespace std;

void ThreadRun(const string& str)
{
    cout << "ThreadRun: " << endl;
    cout <<str << endl;
}   

int main()
{
    thread t1(ThreadRun, "nihaoma ?");

    cout << "main thread" << endl;

    t1.join();

    return 0;
}